<?xml version="1.0" encoding="utf-8"?>
<Content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:blueonionsoftware-com:bloget:runtime:data">
  <text>
		&lt;p&gt;A requirement from one of our clients required that I capture an image of a control to a bitmap. Being a Win32 programmer from days gone by I figured no problem. Grab a device context, do some bit blasting and I'm done. It's a little harder in .Net since you have to do a platform invoke for the BitBlt operation but very doable.&lt;/p&gt;
		&lt;p&gt;Well wouldn't you know it, just about the time I finish up the routine I discover that .Net 2.0 has a new method called &lt;a href="http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.drawtobitmap.aspx"&gt;Control.DrawToBitmap&lt;/a&gt; that does this very thing.  There are a few restrictions like not working with RichText controls or ActiveX controls. Worked like a charm for me.&lt;/p&gt;
</text>
  <last_update>2007-07-25T02:56:24.3125Z</last_update>
  <source_title />
  <source_link />
  <comments />
  <references />
  <attachments />
</Content>